<ion-view title="周评" hide-nav-bar="true" xmlns:c="http://www.w3.org/1999/XSL/Transform">
    <ion-content>
        <ion-scroll>
        <ion-slide-box show-pager = "false" auto-play="false" delegate-handle="false" slider-pager="false" style="display: block" class="as-one">
            <ion-slide  ng-repeat="s in vm.assess" >
                <input type="hidden" ng-model="$parent.vm.assess[$index].id">
                <!--<input type="hidden" value="{{s.id}}" class="memberIdClass">-->
                <div class="bg-head">
                    <a class="button icon-right ion-chevron-right button-calm" id="reportEntrance" ng-click="reportEntrance($parent.vm.assess[$index].id)">统计</a>
                    <img ng-src="{{s.avatarPath}}" class="bg-headImg">
                    <p class="p-name">姓名：{{s.memberName}} &nbsp;<i class="icon ion-male" style="color: #0c60ee" ng-show="{{s.memberSex==1}}"></i>
                        <i class="icon ion-female" style="color: red" ng-show="{{s.memberSex==0}}"></i>
                    </p>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                情绪
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="$parent.vm.assess[$index].emotion" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                合作交往
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="$parent.vm.assess[$index].communication" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                动手操作
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="$parent.vm.assess[$index].operation" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                学习习惯
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="$parent.vm.assess[$index].habit" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                卫生习惯
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="$parent.vm.assess[$index].hygiene" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                进餐
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="$parent.vm.assess[$index].theMeal" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                生活自理
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="$parent.vm.assess[$index].sinceReason" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                锻炼身体
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="$parent.vm.assess[$index].healthy" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                睡眠
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="$parent.vm.assess[$index].sleep" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                <font color="red">来自老师的寄语</font>
                            </div>
                            <div class="item item-text-wrap">
                                <p ng-model="$parent.vm.assess[$index].message">{{$parent.vm.assess[$index].message}}</p>
                                <!--宝宝特别棒，你含棒棒哦！阿达岁的阿萨德阿达阿达阿达的订单阿大大的啊大大大的-->

                                <div>
                                    <button class="icon ion-edit" id="comment " ng-click="commentEdit($index)"></button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <button class="button button-block button-balanced" ng-click="saveAssess($index)">保存</button>
            </ion-slide>

        </ion-slide-box>

        <div ng-show="vm.Assesslength==0" class="show-index">
            <p>当天已没有未评的学生了</p>
        </div>
        <!--======================================================================================================================-->
        <ion-slide-box show-pager = "false" auto-play="false" delegate-handle="false" slider-pager="true" does-continue="true" style="display: none" class="as-two">
            <ion-slide >
                <input type="hidden" ng-model="memberId">
                <input type="hidden" ng-model="assessId">
                <input type="hidden" ng-model="assessStatus">

                <div class="bg-head">
                    <a class="button icon-right ion-chevron-right button-calm" id="reportEntrances" ng-click="reportEntrance(vm.assessDetail.memberId)">统计</a>
                    <!--<i class="icon ion-close-round"></i>-->
                    <a class="icon ion-close-round" id="roundButton" ng-click="colseTwo()"></a>
                    <img src="{{vm.assessDetail.avatarPath}}" class="bg-headImg">
                    <p class="p-name">姓名：{{vm.assessDetail.memberName}}&nbsp;<i class="icon ion-male" style="color: #0c60ee" ng-show="{{vm.assessDetail.memberSex==1}}"></i>
                        <i class="icon ion-female" style="color: red" ng-show="{{vm.assessDetail.memberSex==0}}"></i>
                    </p>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                情绪
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="vm.assessDetail.emotion" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                合作交往
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="vm.assessDetail.communication" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                动手操作
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="vm.assessDetail.operation" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                学习习惯
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="vm.assessDetail.habit" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                卫生习惯
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="vm.assessDetail.hygiene" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                进餐
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="vm.assessDetail.theMeal" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                生活自理
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="vm.assessDetail.sinceReason" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                锻炼身体
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="vm.assessDetail.healthy" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                睡眠
                            </div>
                            <div class="item item-text-wrap">
                                <rating class="rating-block" ng-model="vm.assessDetail.sleep" max="ratingFull.max"></rating>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col">
                        <div class="card">
                            <div class="item item-divider">
                                <font color="red">来自老师的寄语</font>
                            </div>
                            <div class="item item-text-wrap">
                                <p>{{vm.message}}</p>
                                <!--宝宝特别棒，你含棒棒哦！阿达岁的阿萨德阿达阿达阿达的订单阿大大的啊大大大的-->
                                <div>
                                    <button class="icon ion-edit" id="comments " ng-click="commentEdit()"></button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <button class="button button-block button-balanced" ng-click="saveAssessTwo()">保存</button>
            </ion-slide>
        </ion-slide-box>
        </ion-scroll>
    </ion-content>
    <div class="rightFixBox" id="chevron">
        <button class="icon ion-chevron-left" ng-click="buttonas()" id="chevron-button"></button>
        <!--<button class=""-->
    </div>
    <div id="dynamic-comment-box" style="display: none;">
        <div class="textarea-box">
            <textarea class="dynamic-comment-textarea" ng-model="vm.comment"></textarea>
            <button ng-click="commitComment($index)">确定</button>
            <button ng-click="cancelComment()" id="cancel">取消</button>
        </div>
        <div class="weui-mask"></div>
    </div>
    <!--<input type="checkbox" id="menuToggler" class="input-toggler" />-->
    <!--<label for="menuToggler" class="menu-toggler">-->
        <!--<span class="menu-toggler__line"></span>-->
        <!--<span class="menu-toggler__line"></span>-->
        <!--<span class="menu-toggler__line"></span>-->
    <!--</label>-->

    <ioc-scroll>
    <div class="rightMenu">
        <div class="bar bar-header item-input-inset" style="width: 100%;">
            <label class="item-input-wrapper">
                <i class="icon ion-ios-search placeholder-icon"></i>
                <input type="search" class="searchName" placeholder="输入学生姓名搜索" ng-keyup="search()" ng-model="input.filterUser">
            </label>
        </div>
        <div style="overflow-y: auto">
        <a class="item item-avatar" style="text-align: center;height: 50px !important" ng-repeat="x in memberList | filter:input.filterUser" ng-click="goDetail(x.id)">
            <img src="{{x.avatarPath}}">
            <h2 style="margin-top: 8px;margin-left: -20px;color: green" ng-show="{{x.assessStatus==1}}">{{x.memberName}}</h2>
            <h2 style="margin-top: 8px;margin-left: -20px" ng-show="{{x.assessStatus!=1}}">{{x.memberName}}</h2>
        </a>
        </div>
    </div>
    </ioc-scroll>
</ion-view>